package openjdk.jdk8.stream.filter;

import java.util.HashSet;
import java.util.Set;


/**
 * All filter demo of stream.
 */
public class FilterDemo {

    private static final Set<String> exchangeSet = new HashSet<String>() {{
        add("binance");
        add("huobi");
        add("kraken");
        add("bitfinex");
        add("okex");
        add("upbit");
        add("gemini");
        add("bitstamp");
    }};

    public static void main(String[] args) {

       /* List<TransIOGrp> target = exchangeSet.stream()
                .flatMap(o -> grp24h.stream().filter(x -> o.equals(x.getExch()) && x.getContract().equals(conx)))
                .collect(toList());*/
    }


}
